package cn.tedu.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName()
public class User implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id; //数据id

    private String username; //用户姓名

    private String password; //密码

    private String userUrl; //用户头像

    private String phoneNumber; //手机号

    private String email; //邮箱

    private Long biographicalNotesId; //简历id

    private Long roleId; //角色id

    private Integer isEnable; //是否启用

    private String lastIp; //最后登录ip

    private Integer loginNum; //累计登录次数

    private LocalDateTime lastLoginTime; //最后登录时间

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate; //数据创建时间

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified; //数据最后修改时间

}
